package com.pig4cloud.pig.module.api.entity.devices;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pig4cloud.pig.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**
 * 设备箱格 领取物品对象 devices_egg_get_record
 *
 * @author ruoyi
 * @date 2022-01-06
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("devices_egg_get_record")
public class DevicesEggGetRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     *  所属小区id
     */
    private Integer estateId;

    /**
     * 设备id
     */
    private Integer deviceId;

    /**
     * 格子id
     */
    private Integer cellId;

    /**
     * 格子编号
     */
    private Integer cellIndex;

    /**
     * 蛋票id
     */
    private Integer couponId;

    /**
     * 领用人的id
     */
    private Integer userId;

    /**
     * 领取时间
     */
	@TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;


	/**
     * 领用类型 0 - 蛋票兑换  1 - 扫码现金购买
     */
    private Integer getFrom;

	@TableField(exist = false)
	private String faceUrl;

    /**
     * 领取的鸡蛋数量
     */
    private Integer eggCount;

	/**
	 * 箱格商品类型  0 - 鸡蛋 1 - 抽纸 2 - 香皂 3 - 洗衣粉
	 */
	private Integer cellType;

	/**
	 *  备注信息
	 */
	private String remark;


	@Excel(name = "设备名称")
	@TableField(exist = false)
	private String deviceName;

	@Excel(name = "设备编号")
	@TableField(exist = false)
	private String deviceSn;


	@Excel(name = "所属小区")
	@TableField(exist = false)
	private String estateName;

	@Excel(name = "物品名称")
	@TableField(exist = false)
	private String cellTypeName;

	@Excel(name = "领取用户")
	@TableField(exist = false)
	private String nickName;


	@Excel(name = "领取时间")
	@TableField(exist = false)
	private String createTimeStr;

	@TableField(exist = false)
	private String beginDate;

	@TableField(exist = false)
	private String endDate;
}
